package com.plian.system.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @description: 表单字段
 * @author: gangan
 * @create: 2020-09-11 09:36
 */
@Data
@TableName("sys_form_column_name")
@Api(value = "表单字段", tags = "表单字段")
public class FormColumnName {
    /**
     * 单据类型
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 主表id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long baseId;

    /**
     * 表单类型
     */
    @ApiModelProperty(value = "表单类型")
    private String formType;

    /**
     * 字段名
     */
    @ApiModelProperty(value = "字段名")
    private String columnName;

    /**
     * 表单字段名
     */
    @ApiModelProperty(value = "表单字段名")
    private String fieldName;

    /**
     * 是否显示1否2是
     */
    @ApiModelProperty(value = "是否显示1否2是")
    private Integer isShow;

    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号")
    private String orderNumber;
}
